package com.foryou.wechat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.foryou.wechat.entity.UserFollowEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import sun.util.resources.bg.LocaleNames_bg;

import java.util.List;

/**
 * Created by Lee.
 */
@Mapper
@Repository
public interface UserFollowMapper extends BaseMapper<UserFollowEntity> {

    /**
     * <h2>得到关注的用户列表</h2>
     * @param userId
     * @return
     */
    List<UserFollowEntity> getFollowUserList(@Param("start") int start,@Param("userId") Long userId);

    /**
     * <h2>得到用户的粉丝列表</h2>
     * @param userId
     * @return
     */
    List<UserFollowEntity> getFansUserList(@Param("start") int start,@Param("userId") Long userId);

}
